//package pl.com.like.sequoia.web.util;
//
//import org.apache.wicket.RequestCycle;
//
//public class WicketUtils {
//
//	// Adds ../ links to make the location relative to the root of the webapp,
//	// provided it's not a fully-qualified URL.
//	public static final String returnRelativePath(String location) {
//		// WICKET-59 allow external URLs, WICKET-612 allow absolute URLs.
//		if (location.startsWith("http://") || location.startsWith("https://") || location.startsWith("/"))
//			return location;
//		else
//			return RequestCycle.get().getRequest().getRelativePathPrefixToContextRoot() + location;
//	}
//
// }
